<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/views/common/resources.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link href="<%=basePath %>resources/js/common/plugin/My97DatePicker/skin/WdatePicker.css" rel="stylesheet">
<link href="<%=basePath %>resources/css/report.css" rel="stylesheet">
<script src="<%=basePath %>resources/js/common/plugin/echarts/echarts.min.js"></script>
<script src="<%=basePath %>resources/js/common/plugin/My97DatePicker/WdatePicker.js"></script>
<title>报警处理</title>
<style>

.night-chart-list {
	height: 300px;
}

#inputStartDate, #inputEndDate {
	margin-left: 0;
}
</style>
</head>
<script type="text/javascript">
var appCtx="<%=basePath%>";
var flag ='${flag}';
var paramMap;
var userName = '${sessionScope.login_user.login_name}';
</script>
<body class="driving">
	<div class="page">
		<div class="slider pa clearfix">
			<%@ include file="/views/common/menu.jsp"%>
		</div>
		<div class="main ">
			<%@ include file="/views/common/top.jsp"%>
			<div class="content pr" style="margin-top: -45px; clear: both;">
				<div class="tabsHead">
					<ul class="clearfix">
						<li class="fl pr active">
							<div class="overFloeHidden">报警处理</div>
						</li>
					</ul>
				</div>

				<div class="querys fl clearfix"
					style="margin-left: 0px; width: 100%; margin-top: 10px">
					<div>
						<ul class="clearfix fl">
							<li class="fl clearfix mt10" style="margin-right:15px;">
								<select class="query-select fl" id="license"></select>
								<input type="hidden" id="license0" name="license" value="" /> 
							</li>
							<li class="fl clearfix mt10" style="margin-right:15px;">
								<select class="query-select fl" id="alarmType"></select>
								<input type="hidden" id="alarmType0" name="alarmType" value="" />
							</li>
							<li class="fl clearfix mt10" style="margin-right:15px;">
								<select class="query-select fl" id="processType">
									<option value="">全部报警来源</option>
									<option value="1">终端</option>
									<option value="2">企业平台</option>
								</select>
								<input type="hidden" id="processType0" name="processType" value="" />
							</li>
							<li class="fl clearfix mt10">
								<input type="text" id="inputStartDate" style="height:24px;" class="userInput fl Wdate Time_input"
								onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})">
							</li>
							<li class="fl clearfix mt10">
								<label style="width: 30px; height: 26px; line-height: 24px; text-align: center">至</label>
							</li>
							<li class="fl clearfix mt10">
								<input type="text" id="inputEndDate" style="height: 24px;" class="userInput fl Wdate Time_input"
								onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'})">
							</li>
							<li class="fl clearfix mt10">
								<a class="userBtn" href="javascript:;" id="queryBtn" style="top:20px;margin-left:80px;" 
								onclick='OrderReceiving.tableReload();' >查询</a>
							</li>
							<li class="fl clearfix mt10">
								<a class="userBtn" href="javascript:;" id="exportExcel" style="top:20px;margin-left:15px;" 
								onclick='OrderReceiving.exportExcel();' >导出</a>
							</li>
							<!-- <li class="fl clearfix mt10">
								<a class="userBtn" href="javascript:;" id="batch" style="top:20px;margin-left:15px;">批量处理</a>
							</li> -->
						</ul>
					</div>
				</div>
				<div class="chart row-fluid" id="table">
					<div class="span12 night-chart-list chart-line" id="chartMillage2">
						<div class="detail-report">
							<table id="objTable"></table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="win" class="modal hide fade"
		style="left: 45%; width: 50%; top: 15%; height: 420px;"
		aria-hidden="false" tabindex="-1" data-backdrop="static">
		<div class="modal-header" >
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="margin-top: -2px;margin-right:-6px;">×</button>
			<span style="margin-top:0px; margin-left: 85px;" id="handleTips" >&nbsp;</span>
			<h4 id="Title" style="color: white; line-height: 15px;margin-top:-18px"></h4>
		</div>
		<div class="modal-body"
			style="font-size: 13px; vertical-align: middle; text-align: left; max-height: 500px; padding: 5px;">
			<div>
				<iframe id="iframe" name="iframe" style="width: 100%; height: 350px"
					src=""></iframe>
			</div>
		</div>
		<div class="modal-footer" style="padding: 5px 20px;">
			<button class="btn btn-ecColor" data-dismiss="modal"
				aria-hidden="true">取消</button>
			<button class="btn btn-ecColor" id="save" onclick="OrderReceiving.saveHandleDeatils()">确定</button>
		</div>
	</div>
	<%--导出数据弹窗--%>
	<div id="exportModal" class="modal hide fade" style="width:600px;left: 50%; top: 50%; margin-left:-300px; margin-top: -62px;"
	 aria-hidden="false" tabindex="-1" data-backdrop="static">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
			<h4 id="exportTitle" style="color:white;line-height:15px"></h4>
		</div>
		<div class="modal-body" style="font-size: 13px;vertical-align: middle; text-align: center;">
			<span>页数:</span>
			<input class="input-medium" id="StartPageIndex" type="number" value="1"><span>&nbsp;到&nbsp;</span>
			<input class="input-medium" id="EndPageIndex" type="number">
		</div>
		<div class="modal-footer" style="padding:5px 20px;">
		     <button class="btn btn-ecColor" data-dismiss="modal" aria-hidden="true">关闭</button>
		     <button class="btn btn-ecColor" id="confirmExport" name="confirmExport" onclick='OrderReceiving.exportCarExcel()'>导出</button> 
	    </div>
	</div>
	<script src="<%=basePath %>resources/js/common/main/HashMap.js"></script>
	<script src="<%=basePath %>resources/js/common/main/global.js"></script>
	<script src="<%=basePath %>resources/js/common/main/nav.js"></script>
	<script src="<%=basePath %>resources/js/common/main/mapToop.js"></script>
	<script src="<%=basePath %>resources/js/common/util/common.js"></script>
	<script
		src="<%=basePath %>resources/js/business/orderReceiving/orderReceiving.js"></script>
</body>
</html>